package com.ms.teapuesto.util;

//import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import java.sql.Connection;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * User: jcmacavilca
 * Date: 25/01/2011
 */
public class DAOUtils {

    public static void close(Connection connection) throws SQLException {
        if (connection != null && !connection.isClosed()) {
            connection.close();
        }
    }

    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("E d 'de' MMMMM 'de' yyyy");
        // Lunes 01 de septiembre de 2014
        try {
            System.out.println(sdf.parse("Lunes 01 de septiembre de 2014"));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
